home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / tests / dmrdsp.dia.ref < prev    next >
Text File  |  1999-09-16  |  7KB  |  215 lines

  1.  
  2. z=poly(0,'z')
  3.  z  =
  4.  
  5.     z   
  6.  
  7. n=1+z;d=n*n;n1=[n d];d1=[d d*d];n1=[n1 n1];d1=[d1 d1];
  8.  
  9. n2=[n n*n;n*n n**4];d2=[n*n n**4;n n*n];den=d2(1,:);num=n2(2,:);
  10.  
  11. p=poly(rand(5,1),'z');q=poly(rand(6,1),'z');
  12.  
  13. p1=[p,0.1+2.35*z-5.05*z**3];q1=[q,2.56+0.03*z-10.01*z*z+z**5];
  14.  
  15. d3=[1+z**10 z**15];
  16.  
  17. tlist('r',d,n)
  18.  ans  =
  19.  
  20.               2  
  21.     1 + 2z + z   
  22.     ----------   
  23.       1 + z      
  24.  
  25. tlist('r',n,d)
  26.  ans  =
  27.  
  28.       1 + z      
  29.     ---------    
  30.               2  
  31.     1 + 2z + z   
  32.  
  33. tlist('r',d2,n2)
  34.  ans  =
  35.  
  36. !             2               2    3   4 !
  37. !   1 + 2z + z     1 + 4z + 6z + 4z + z  !
  38. !   ----------     --------------------  !
  39. !                                 2      !
  40. !     1 + z             1 + 2z + z       !
  41. !                                        !
  42. !                                 2      !
  43. !     1 + z             1 + 2z + z       !
  44. !   ---------      --------------------  !
  45. !             2               2    3   4 !
  46. !   1 + 2z + z     1 + 4z + 6z + 4z + z  !
  47.  
  48. tlist('r',n2,d2)
  49.  ans  =
  50.  
  51. !                                 2      !
  52. !     1 + z             1 + 2z + z       !
  53. !   ---------      --------------------  !
  54. !             2               2    3   4 !
  55. !   1 + 2z + z     1 + 4z + 6z + 4z + z  !
  56. !                                        !
  57. !             2               2    3   4 !
  58. !   1 + 2z + z     1 + 4z + 6z + 4z + z  !
  59. !   ----------     --------------------  !
  60. !                                 2      !
  61. !     1 + z             1 + 2z + z       !
  62.  
  63. tlist('r',den,num)
  64.  ans  =
  65.  
  66. !             2               2    3   4 !
  67. !   1 + 2z + z     1 + 4z + 6z + 4z + z  !
  68. !   ----------     --------------------  !
  69. !             2               2    3   4 !
  70. !   1 + 2z + z     1 + 4z + 6z + 4z + z  !
  71.  
  72. tlist('r',num,den)
  73.  ans  =
  74.  
  75. !             2               2    3   4 !
  76. !   1 + 2z + z     1 + 4z + 6z + 4z + z  !
  77. !   ----------     --------------------  !
  78. !             2               2    3   4 !
  79. !   1 + 2z + z     1 + 4z + 6z + 4z + z  !
  80.  
  81. tlist('r',p1,q1)
  82.  ans  =
  83.  
  84.  
  85.          column 1
  86.  
  87. !                                      2            3            4     !
  88. ! - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z      !
  89. !         5                                                            !
  90. !      + z                                                             !
  91. !   ------------------------------------------------------------------ !
  92. !                                      2            3            4     !
  93. !   0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z      !
  94. !                  5   6                                               !
  95. !      - 3.6713072z + z                                                !
  96.  
  97.          column 2
  98.  
  99. !                         3    !
  100. !      0.1 + 2.35z - 5.05z     !
  101. !   -------------------------  !
  102. !                        2   5 !
  103. !   2.56 + 0.03z - 10.01z + z  !
  104.  
  105. tlist('r',q1,p1)
  106.  ans  =
  107.  
  108.  
  109.          column 1
  110.  
  111. !                                      2            3            4     !
  112. !   0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z      !
  113. !                  5   6                                               !
  114. !      - 3.6713072z + z                                                !
  115. !   ------------------------------------------------------------------ !
  116. !                                      2            3            4     !
  117. ! - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z      !
  118. !         5                                                            !
  119. !      + z                                                             !
  120.  
  121.          column 2
  122.  
  123. !                        2   5 !
  124. !   2.56 + 0.03z - 10.01z + z  !
  125. !   -------------------------  !
  126. !                         3    !
  127. !      0.1 + 2.35z - 5.05z     !
  128.  
  129. tlist('r',p,q)
  130.  ans  =
  131.  
  132.                                        2            3            4      
  133.   - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
  134.           5                                                             
  135.        + z                                                              
  136.     ------------------------------------------------------------------  
  137.                                        2            3            4      
  138.     0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z       
  139.                    5   6                                                
  140.        - 3.6713072z + z                                                 
  141.  
  142. tlist('r',q,p)
  143.  ans  =
  144.  
  145.                                        2            3            4      
  146.     0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z       
  147.                    5   6                                                
  148.        - 3.6713072z + z                                                 
  149.     ------------------------------------------------------------------  
  150.                                        2            3            4      
  151.   - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
  152.           5                                                             
  153.        + z                                                              
  154.  
  155. tlist('r',p,z)
  156.  ans  =
  157.  
  158.                                        2            3            4      
  159.   - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
  160.           5                                                             
  161.        + z                                                              
  162.     ------------------------------------------------------------------  
  163.                                     z                                   
  164.  
  165. tlist('r',z,p)
  166.  ans  =
  167.  
  168.                                     z                                   
  169.     -----------------------------------------------------------------   
  170.                                        2            3            4      
  171.   - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
  172.           5                                                             
  173.        + z                                                              
  174.  
  175. tlist('r',d1,n1)
  176.  ans  =
  177.  
  178.  
  179.          column 1 to 3
  180.  
  181. !             2               2    3   4              2 !
  182. !   1 + 2z + z     1 + 4z + 6z + 4z + z     1 + 2z + z  !
  183. !   ----------     --------------------     ----------  !
  184. !                                 2                     !
  185. !     1 + z             1 + 2z + z            1 + z     !
  186.  
  187.          column 4
  188.  
  189. !              2    3   4 !
  190. !   1 + 4z + 6z + 4z + z  !
  191. !   --------------------  !
  192. !                  2      !
  193. !        1 + 2z + z       !
  194.  
  195. tlist('r',n1,d1)
  196.  ans  =
  197.  
  198.  
  199.          column 1 to 3
  200.  
  201. !                                 2                     !
  202. !     1 + z             1 + 2z + z            1 + z     !
  203. !   ---------      --------------------     ---------   !
  204. !             2               2    3   4              2 !
  205. !   1 + 2z + z     1 + 4z + 6z + 4z + z     1 + 2z + z  !
  206.  
  207.          column 4
  208.  
  209. !                  2      !
  210. !        1 + 2z + z       !
  211. !   --------------------  !
  212. !              2    3   4 !
  213. !   1 + 4z + 6z + 4z + z  !
  214.  
  215.